from django.urls import path
from rest_framework.routers import DefaultRouter
from . import views

urlpatterns = [
    # 行政区划分
    # path('areas/', views.AreasListView.as_view()),
    # #获取某省下面的市区
    # path('areas/<int:pk>',views.AreasDetailView.as_view())
]
router=DefaultRouter()
router.register('areas',views.AreaViewSet,base_name='area')
urlpatterns += router.urls